package net.awpspace.caromini;

import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

public class Hand {
	int x, y;
	Image hand;
	
	public Hand(Image hand) {
		this.hand = hand;
	}
	
	public void update(int x, int y){
		this.x = x;
		this.y = y;
	}
	
	public void draw(Graphics g){
		g.drawImage(hand, this.x - hand.getWidth()/2, this.y - hand.getHeight()/2, 0);
	}
}
